package com.mlethe.library.multi.api.entity;

import android.text.TextUtils;

import com.mlethe.library.multi.api.Share;

/**
 * 文本分享实体
 *
 * @author Mlethe
 */
public final class ShareText extends Share {

    /**
     * 分享内容
     */
    private String text;

    public ShareText(String text) {
        this.text = text;
    }

    /**
     * 获取内容
     */
    public String getText() {
        return text;
    }

    @Override
    public boolean isValid() {
        return !TextUtils.isEmpty(text);
    }

    @Override
    protected void release() {
        super.release();
        text = null;
    }
}
